Skip to content

Conversation

TheBobBobs
Copy link
Contributor

Summary

Change search_library to only fetch entry.id.
Add get_tag_entries method to Library. Returns a dict[tag_id, set[entry_ids]]
Change update_thumbs to not fetch all tags for entries on page and instead use the above method to only check the tags it cares about.
move signal connection for item_thumb out of update_thumbs and into its init method.

This brings page load from 200ms->4ms

Tasks Completed

  • Platforms Tested:
    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested For:
    • Basic functionality
    • PyInstaller executable

@CyanVoxel CyanVoxel added TagStudio: Search The TagStudio search engine Type: Performance An issue or change related to performance labels Jun 12, 2025
@CyanVoxel CyanVoxel added the Status: Review Needed A review of this is needed label Jun 12, 2025
@CyanVoxel CyanVoxel moved this to 🏓 Ready for Review in TagStudio Development Jun 12, 2025
@CyanVoxel CyanVoxel moved this from 🏓 Ready for Review to 👀 In review in TagStudio Development Aug 4, 2025
@CyanVoxel CyanVoxel added this to the Alpha v9.5.3 milestone Aug 4, 2025
Copy link
Member

@CyanVoxel CyanVoxel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I apologize for the big delay on getting to reviewing this.
Overall this seems to be a great improvement! We've been wanting to move (back) to referencing entries by ID ever since the change came into play in 9.5.

I'll go ahead and tidy up the merge conflict and get this merged. Thank you so much for your work on this!

@CyanVoxel CyanVoxel removed the Status: Review Needed A review of this is needed label Aug 4, 2025
@CyanVoxel CyanVoxel merged commit e115443 into TagStudioDev:main Aug 4, 2025
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in TagStudio Development Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TagStudio: Search The TagStudio search engine Type: Performance An issue or change related to performance
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants